From 00799b3c93a9e63f40412c733ad13e452b2048a7 Mon Sep 17 00:00:00 2001 From: Thomas Manni Date: Sun, 4 Mar 2018 10:17:07 +0100 Subject: [PATCH] type-u8: fix u8 <> double conversions for chroma type --- babl/base/type-u8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babl/base/type-u8.c b/babl/base/type-u8.c index 8eeaf65..d17590d 100644 --- a/babl/base/type-u8.c +++ b/babl/base/type-u8.c @@ -110,7 +110,7 @@ convert_u8_double_scaled (BablConversion *c, MAKE_CONVERSIONS (u8, 0.0, 1.0, 0x00, UINT8_MAX) MAKE_CONVERSIONS (u8_luma, 0.0, 1.0, 16, 235) -MAKE_CONVERSIONS (u8_chroma, 0.0, 1.0, 16, 240) +MAKE_CONVERSIONS (u8_chroma, -0.5, 0.5, 16, 240) void babl_base_type_u8 (void) -- 2.30.2